package com.atguigu.srb.core.mapper;

import com.atguigu.srb.core.pojo.entity.IntegralGrade;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.math.BigDecimal;

/**
 * <p>
 * 积分等级表 Mapper 接口
 * </p>
 *
 * @author lwm
 * @since 2022-02-10
 */
public interface IntegralGradeMapper extends BaseMapper<IntegralGrade> {

    /**
     * 根据用户积分获取可借款额度
     * @param userId
     * @return
     */
    BigDecimal getBorrowAmount(Long userId);
}
